<template>
	<pager ref="pager" auth @loadData="loadData">
		<u-grid :col="3" @click="clickMenu">
			<u-grid-item :index="0">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">连锁店统计</view>
			</u-grid-item>
			<u-grid-item :index="1">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">连锁店代理统计</view>
			</u-grid-item>
			<u-grid-item :index="2">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">云仓数据统计</view>
			</u-grid-item>
			<u-grid-item :index="3">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">云仓代理统计</view>
			</u-grid-item>
			<u-grid-item :index="4">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">内部管理统计</view>
			</u-grid-item>
			<u-grid-item :index="5">
				<u-icon name="star" :size="46"></u-icon>
				<view class="grid-text">物流统计</view>
			</u-grid-item>
		</u-grid>
	</pager>
</template>
<script>
export default {
	methods: {
		loadData() {
			const vm = this;

			vm.$refs.pager.finish();
		},
		clickMenu(index) {
			const vm = this;
			
			if (index == 0) {
				vm.$utils.openPage('/pkgChainStore/pages/index/index');
			}else if (index == 1) {
				vm.$utils.openPage('/pkgChainAgent/pages/index/index');
			}else if (index == 2) {
				vm.$utils.openPage('/pkgCloudStock/pages/index/index');
			}else if (index == 3) {
				vm.$utils.openPage('/pkgCloudAgent/pages/index/index');
			}else if (index == 4) {
				vm.$utils.openPage('/pkgCompany/pages/index/index');
			}else if (index == 5) {
				vm.$utils.openPage('/pkgExpress/pages/index/index');
			}
		},
	}
};
</script>
<style lang="scss"></style>
